//
//  FGChatHelper.h
//  FGChatKit
//
//  Created by Henry on 2021/5/10.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FGChatHelper : NSObject

+ (BOOL)isIpad;

+ (UIWindow *)keyWindow;

+ (BOOL)isPortrait;

/// 状态栏高度 iPhoneX：34 其他：20
+ (CGFloat)statusBarHeight;

/// 导航栏高度 iPad：50 iPhone：44
+ (CGFloat)navBarHeight;

/// 状态栏高度+导航栏高度
+ (CGFloat)statusNavHeight;

/// 顶部安全高度 iPhoneX：44 其他：20
+ (CGFloat)topSafeHeight;

/// 底部安全高度 iPhoneX：34 其他：0
+ (CGFloat)bottomSafeHeight;

+ (UIEdgeInsets)safeAreaInset;


#pragma mark --------


+ (NSString *)generateUUID;

+ (CGSize)getThumbSizeFromOrigin:(CGSize)size;

/// 随机头像url
+ (NSString *)randomAvatarUrl;

+ (UIImage *)defaultHead;

#pragma mark - 本地数据

+ (NSString *)baseDir;
+ (NSString *)pathAvatarImage:(NSString *)name;
+ (NSString *)pathConv:(NSString *)convId;
+ (NSString *)pathConvHead:(NSString *)convId name:(NSString *)name;
+ (NSString *)pathConvImage:(NSString *)convId name:(NSString *)name;
+ (NSString *)pathConvVoice:(NSString *)convId name:(NSString *)name;
+ (NSString *)pathConvFile:(NSString *)convId name:(NSString *)name;
+ (NSString *)pathConvVideo:(NSString *)convId name:(NSString *)name;

+ (void)removeConv:(NSString *)convId;

@end

NS_ASSUME_NONNULL_END
